package bit.study;
import java.sql.Connection;
import java.sql.DriverManager;

import org.apache.tomcat.util.net.SecureNioChannel.ApplicationBufferHandler;
public class Connect {
	private static Connection conn;
	private Connect(){}
	static {
		String url="jdbc:oracle:thin:@127.0.0.1:1521:XE";
		String user="system";
		String password="12345";
		try {
			Class.forName("oracle.jdbc.driver.OracleDriver");
			conn = DriverManager.getConnection(url, user, password);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static Connection getConnection(){
		return conn;
	}
}
